//动态调整rem值,除以100
function setsize() {
  var winW = document.documentElement.clientWidth,
      winH = document.documentElement.clientHeight,
    baseFontSize = 100,
    baseWidth = 750,

    winWidthSize = Math.min(winW, winH);

  var _html = document.getElementsByTagName('html')[0];
  _html.style.fontSize =winWidthSize / baseWidth * baseFontSize + 'px';

}
setsize();



